\usepackage{soul} % for highlighting text
\usepackage{typearea}
\paperwidth 8.5in \paperheight 11in
\typearea{13}

\emergencystretch=\hsize
\tolerance=9999

\usepackage{etoolbox} % for if statements
\usepackage{theorem,latexsym,graphicx}
\usepackage{amsmath,amssymb,enumerate}
\usepackage{xspace}
\usepackage{bm}
\usepackage{ifpdf}
\usepackage{shadow,shadethm,color}
\usepackage[compact]{titlesec}
\usepackage{algorithm}
\usepackage[noend]{algorithmic}
%\numberwithin{algorithm}{section}
\usepackage{subfigure}
\usepackage{verbatim}
\usepackage{times}
\usepackage{paralist}

\definecolor{Darkblue}{rgb}{0,0,0.4}
\definecolor{Brown}{cmyk}{0,0.81,1.,0.60}
\definecolor{Purple}{cmyk}{0.45,0.86,0,0}
\newcommand{\mydriver}{hypertex}
\ifpdf
 \renewcommand{\mydriver}{pdftex}
\fi

\newtheorem{thm}{Theorem}
\newtheorem{cor}[thm]{Corollary}
\newtheorem{lem}[thm]{Lemma}
\newtheorem{fact}[thm]{Fact}
\newtheorem{conj}[thm]{Conjecture}

%\theoremstyle{remark}
\newtheorem{rem}[thm]{Remark}

%\theoremstyle{definition}
\newtheorem{defn}[thm]{Definition}

\newcommand{\note}[1]{\textcolor{red}{\textbf{#1}}}
\newcommand{\aside}[1]{\makebox[1.5in][r]{#1}}




\title{\mytitle}
\author{\myauthor}

\newcommand{\qedsymb}{\hfill{\rule{2mm}{2mm}}}
\newenvironment{proof}{\begin{trivlist} \item[\hspace{\labelsep}{\bf
\noindent Proof.\/}] }{\qedsymb\end{trivlist}}%
\newenvironment{proofof}[1]{\begin{trivlist} \item[\hspace{\labelsep}{\bf
	\noindent Proof of {#1}.\/}] }{\qedsymb\end{trivlist}}%

\newenvironment{analysis}{\begin{trivlist} \item[\hspace{\labelsep}{\bf
\noindent Analysis.\/}] }{\qedsymb\end{trivlist}}%



\newcommand{\pr}{\textbf{Pr}}
\newcommand{\ex}{\textbf{E}}
\newcommand{\var}{\textbf{Var}}
\newcommand{\cov}{\textbf{Cov}}
\newcommand{\std}{\textbf{stddev}}
\newcommand{\dbern}{\text{Bernoulli}}
\newcommand{\dbino}{\text{Binomial}}
\newcommand{\dgeom}{\text{Geometric}}
\newcommand{\dpois}{\text{Poisson}}
\newcommand{\unif}{\text{Unif}}
\newcommand{\expon}{\text{Exponential}}

\makeatletter
\setlength{\parindent}{0pt}
\addtolength{\partopsep}{-2mm}
\setlength{\parskip}{5pt plus 1pt}
\addtolength{\theorempreskipamount}{-1mm}
\addtolength{\theorempostskipamount}{-1mm}
\addtolength{\abovedisplayskip}{-3mm}
\addtolength{\textheight}{45pt}
\makeatother

% \renewcommand{\familydefault}{\sfdefault}
